<template>
	<div class="cont">
		<div class="box">
			<h3>买单交易详情</h3>
			<ul class="info">
				<li>
					<span>买方编号：</span>
					<p>12132131</p>
				</li>
				<li>
					<span>姓名：</span>
					<p>12132131</p>
				</li>
				<li>
					<span>手机：</span>
					<p>1888888888</p>
				</li>
				<li>
					<span>支付市值：</span>
					<p>580.00</p>
				</li>
				<li>
					<span>上传支付凭证：</span>
					<img @click='toogle(true)' src="">
				</li>
			</ul>
		</div>
		<div class="imgbox" v-show='flag' @click='toogle(false)'>
			<img src="" alt="">
		</div>
	</div>
</template>
<script>
	export default {
		name:'purch',
		data() {
			return {
				flag:true
			}
		},
		methods: {
			getA() {
				console.log(this.$route.params.id)
			},
			toogle(res) {
				this.flag = res
			}
		},
		mounted() {
			this.getA()
		},
		watch:{
			"$route":'getA'
		},
		components:{
		}
	}
</script>

<style lang="scss" scoped>
	.cont {
		padding: 8px;
	}
	.box {
		background-color: #fff;
		h3 {
			border-bottom: 1px solid #bbb;
			padding: 6px;
		}
		.info {
			color: #555454;
			padding-left: 20px;
			padding-bottom: 14px;
			li {
				display: flex;
				padding: 10px 0;
				align-items: center;
				border-bottom: 1px solid #ccc;
				> span {
					display: block;
					width: 30%;
				}
				p {
					span {
						display: block;
						padding: 3px 0;
					}
				}
				img {
					width: 20%;
					height: auto;
				}
			}
		}
	}
	.imgbox {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.6);
		display: flex;
		align-items:center;
		img {
			display: block;
			margin: 0 auto;
			max-width: 100%;
		}
	}
</style>
